home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / dirent_.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.8 KB  |  58 lines

  1. /* Copyright (C) 1993, 1997, 1998 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: dirent_.h,v 1.2 2000/09/19 19:00:09 lpd Exp $ */
  20. /* Generic substitute for Unix dirent.h */
  21.  
  22. #ifndef dirent__INCLUDED
  23. #  define dirent__INCLUDED
  24.  
  25. /* We must include std.h before any file that includes sys/types.h. */
  26. #include "std.h"
  27.  
  28. /*
  29.  * The location (or existence) of certain system headers is
  30.  * environment-dependent. We detect this in the makefile
  31.  * and conditionally define switches in gconfig_.h.
  32.  */
  33. #include "gconfig_.h"
  34.  
  35. /*
  36.  * Directory entries may be defined in quite a number of different
  37.  * header files.  The following switches are defined in gconfig_.h.
  38.  */
  39. #ifdef HAVE_DIRENT_H
  40. #  include <dirent.h>
  41. typedef struct dirent dir_entry;
  42.  
  43. #else /* sys/ndir or ndir or sys/dir, i.e., no dirent */
  44. #  ifdef HAVE_SYS_DIR_H
  45. #    include <sys/dir.h>
  46. #  endif
  47. #  ifdef HAVE_SYS_NDIR_H
  48. #    include <sys/ndir.h>
  49. #  endif
  50. #  ifdef HAVE_NDIR_H
  51. #    include <ndir.h>
  52. #  endif
  53. typedef struct direct dir_entry;
  54.  
  55. #endif /* sys/ndir or ndir or sys/dir */
  56.  
  57. #endif /* dirent__INCLUDED */
  58.